package p.ithorns.framework.core.model;

import lombok.Data;


/**
 * @Author: liuhaitao
 * @Date: 2022/8/26 13:05
 * @Description: 消息指令编码
 */
@Data
public final class RawCode<T> implements IType<T> {

    private final T code;

    private final String desc;

    private final Class<? extends IType> subType;

    public IType[] getValues() {
        return subType.getEnumConstants();
    }

}